import request from '@/utils/request'
const group_name = 'article'
const api_name = 'article'
export default {
    search(page, size, searchMap) {
        return request({
            url: `/${group_name}/${api_name}/search/${page}/${size}`,
            method: 'post',
            data: searchMap
        });
    },
    findById(id) {
        return request({
            url: `/${group_name}/${api_name}/${id}`,
            method: 'get'
        })
    },
    updatelook(id) {
        return request({
            url: `/${group_name}/${api_name}/look/${id}`,
            method: 'put'
        })
    },
}
